package VN.EDU.IMIC.DEVELOPER.NGUYENVANTHIEN.DAODIEN.LOAISANPHAM;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import java.awt.Color;

public class MENULOAISANPHAM extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MENULOAISANPHAM frame = new MENULOAISANPHAM();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public MENULOAISANPHAM() {
		setTitle("THONG TIN LOAI SAN PHAM\r\n");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 776, 300);
		contentPane = new JPanel();
		contentPane.setBackground(Color.CYAN);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("Mã loại SP");
		lblNewLabel.setBounds(29, 45, 66, 14);
		contentPane.add(lblNewLabel);
		
		JLabel lblNewLabel_2 = new JLabel("Mã thuế");
		lblNewLabel_2.setBounds(29, 79, 66, 14);
		contentPane.add(lblNewLabel_2);
		
		JLabel lblNewLabel_1 = new JLabel("Mã NCC");
		lblNewLabel_1.setBounds(29, 118, 66, 14);
		contentPane.add(lblNewLabel_1);
		
		JLabel lblTnNcc = new JLabel("Tên NCC");
		lblTnNcc.setBounds(29, 160, 66, 14);
		contentPane.add(lblTnNcc);
		
		textField = new JTextField();
		textField.setBounds(105, 42, 615, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(105, 76, 615, 20);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		textField_2.setBounds(105, 115, 615, 20);
		contentPane.add(textField_2);
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		textField_3.setBounds(105, 157, 615, 20);
		contentPane.add(textField_3);
		textField_3.setColumns(10);
		
		JButton btnNewButton = new JButton("Thêm");
		btnNewButton.setBackground(Color.GREEN);
		btnNewButton.setIcon(new ImageIcon(MENULOAISANPHAM.class.getResource("/VN/EDU/IMIC/PROJECTLEADER/NGUYENVANDOAN/SWINGDEMO/ICONS/action_settings.png")));
		btnNewButton.setBounds(105, 188, 90, 23);
		contentPane.add(btnNewButton);
		
		JButton btnSa = new JButton("Sửa");
		btnSa.setBackground(Color.ORANGE);
		btnSa.setIcon(new ImageIcon(MENULOAISANPHAM.class.getResource("/VN/EDU/IMIC/DEVELOPER/NGUYENVANTHIEN/THUVIEN/ICON/settings_16.png")));
		btnSa.setBounds(205, 188, 84, 23);
		contentPane.add(btnSa);
		
		JButton btnXa = new JButton("Xóa");
		btnXa.setBackground(Color.RED);
		btnXa.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnXa.setIcon(new ImageIcon(MENULOAISANPHAM.class.getResource("/VN/EDU/IMIC/DEVELOPER/NGUYENVANTHIEN/THUVIEN/ICON/delete.gif")));
		btnXa.setBounds(299, 188, 84, 23);
		contentPane.add(btnXa);
		
		JButton btnLu = new JButton("Lưu");
		btnLu.setBackground(Color.BLUE);
		btnLu.setIcon(new ImageIcon(MENULOAISANPHAM.class.getResource("/VN/EDU/IMIC/DEVELOPER/NGUYENVANTHIEN/THUVIEN/ICON/book_edit.png")));
		btnLu.setBounds(392, 188, 84, 23);
		contentPane.add(btnLu);
		
		JButton btnThot = new JButton("Thoát");
		btnThot.setBackground(Color.BLACK);
		btnThot.setIcon(new ImageIcon(MENULOAISANPHAM.class.getResource("/VN/EDU/IMIC/DEVELOPER/NGUYENVANTHIEN/THUVIEN/ICON/cancel.gif")));
		btnThot.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnThot.setBounds(486, 188, 84, 23);
		contentPane.add(btnThot);
		
		JButton btnInDanhSch = new JButton("In danh sách loại SP");
		btnInDanhSch.setBackground(Color.MAGENTA);
		btnInDanhSch.setBounds(581, 188, 139, 23);
		contentPane.add(btnInDanhSch);
	}
}
